-- GENERATED SPELL FOR [Bash'ir Controller] --


function spell0_23368(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(34945,pUnit)
pUnit:RegisterEvent('Sorts_23368', 3500, 1)
end

function spell1_23368(pUnit, Event) --@Holy Nova,Self--
pUnit:FullCastSpellOnTarget(34944,pUnit)
pUnit:RegisterEvent('Sorts_23368', 673, 1)
end

function spell2_23368(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(17139,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23368', 30261, 1)
end

function Sorts_23368(pUnit, Event)
local choix_sorts_23368 = math.random(0, 2)
if choix_sorts_23368 == 0 then
pUnit:RegisterEvent('spell0_23368', 1, 1)
end
if choix_sorts_23368 == 1 then
pUnit:RegisterEvent('spell1_23368', 1, 1)
end
if choix_sorts_23368 == 2 then
pUnit:RegisterEvent('spell2_23368', 1, 1)
end
end

function mob23368_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23368', math.random(1500, 3000), 1)
end

function mob23368_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23368_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23368_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23368, 1, 'mob23368_Action')
RegisterUnitEvent(23368, 2, 'mob23368_Leave')
RegisterUnitEvent(23368, 3, 'mob23368_Kill')
RegisterUnitEvent(23368, 4, 'mob23368_Die')
